#ifndef UTILS_H
#define UTILS_H
#include <stdlib.h>
#include "vchar.h"
#include "prs_struct.h"
void * xmalloc(size_t size);
void * xcalloc(size_t size);
void * xrealloc(void *base, size_t size);
char * get_env_variable(const char *str);
char * extract_var_name(char *str);
void update_env_dir();
void print_help();


#define CATALOG_DELIMETER '/'
#define HOME_VARIABLE_NAME "HOME"
#define USER_VARIABLE_NAME "USER"
#define PWD_VARIABLE_NAME "PWD"
#define HOST_VARIABLE_NAME "HOST"


#endif // UTILS_H
